
package com.wwy.monitor.service;

import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.Map;

/**
 * @author tianquan.ld
 * @version V1.0
 * <p>Description: é®ä»¶åéæå¡ </p>
 * @date 2019-11-04 11:06
 */
public interface MonitorMailService {
    /**
     * åéé®ä»¶
     *
     * @param userId       ç³»ç»id
     * @param mailAddress  åéå°å
     * @param mailTitle    é®ä»¶æ é¢
     * @param templateName é®ä»¶æ¨¡æ¿
     * @param paramMap     é®ä»¶æ¨¡æ¿参数
     * @param isHtml       æ¯å¦ä¸ºhtmlæ ¼å¼æ¨¡æ¿
     * @return
     */
    boolean sendMail(String userId, String mailAddress, String mailTitle, String templateName, Map<String, Object> paramMap
            , boolean isHtml) throws IOException, TemplateException;
}